package com.example.myapplication.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class Singer implements Parcelable {



        /**
         * img1v1Id : 109951165842000700
         * topicPerson : 0
         * alias : ["JJ Lin"]
         * picId : 109951165841995400
         * musicSize : 636
         * albumSize : 50
         * briefDesc :
         * followed : false
         * img1v1Url : https://p2.music.126.net/Ayo8yOb3OZZJ7V67DYg3NA==/109951165842000704.jpg
         * trans :
         * picUrl : https://p1.music.126.net/zC7MYnme_qo36jJ_7JHN-w==/109951165841995391.jpg
         * name : 林俊杰
         * id : 3684
         * picId_str : 109951165841995391
         * img1v1Id_str : 109951165842000704
         */

        private long img1v1Id;
        private int topicPerson;
        private long picId;
        private int musicSize;
        private int albumSize;
        private String briefDesc;
        private boolean followed;
        private String img1v1Url;
        private String trans;
        private String picUrl;
        private String name;
        private int id;
        private String picId_str;
        private String img1v1Id_str;
        private List<String> alias;

    public long getImg1v1Id() {
        return img1v1Id;
    }

    public void setImg1v1Id(long img1v1Id) {
        this.img1v1Id = img1v1Id;
    }

    public int getTopicPerson() {
        return topicPerson;
    }

    public void setTopicPerson(int topicPerson) {
        this.topicPerson = topicPerson;
    }

    public long getPicId() {
        return picId;
    }

    public void setPicId(long picId) {
        this.picId = picId;
    }

    public int getMusicSize() {
        return musicSize;
    }

    public void setMusicSize(int musicSize) {
        this.musicSize = musicSize;
    }

    public int getAlbumSize() {
        return albumSize;
    }

    public void setAlbumSize(int albumSize) {
        this.albumSize = albumSize;
    }

    public String getBriefDesc() {
        return briefDesc;
    }

    public void setBriefDesc(String briefDesc) {
        this.briefDesc = briefDesc;
    }

    public boolean isFollowed() {
        return followed;
    }

    public void setFollowed(boolean followed) {
        this.followed = followed;
    }

    public String getImg1v1Url() {
        return img1v1Url;
    }

    public void setImg1v1Url(String img1v1Url) {
        this.img1v1Url = img1v1Url;
    }

    public String getTrans() {
        return trans;
    }

    public void setTrans(String trans) {
        this.trans = trans;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPicId_str() {
        return picId_str;
    }

    public void setPicId_str(String picId_str) {
        this.picId_str = picId_str;
    }

    public String getImg1v1Id_str() {
        return img1v1Id_str;
    }

    public void setImg1v1Id_str(String img1v1Id_str) {
        this.img1v1Id_str = img1v1Id_str;
    }

    public List<String> getAlias() {
        return alias;
    }

    public void setAlias(List<String> alias) {
        this.alias = alias;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.img1v1Id);
        dest.writeInt(this.topicPerson);
        dest.writeLong(this.picId);
        dest.writeInt(this.musicSize);
        dest.writeInt(this.albumSize);
        dest.writeString(this.briefDesc);
        dest.writeByte(this.followed ? (byte) 1 : (byte) 0);
        dest.writeString(this.img1v1Url);
        dest.writeString(this.trans);
        dest.writeString(this.picUrl);
        dest.writeString(this.name);
        dest.writeInt(this.id);
        dest.writeString(this.picId_str);
        dest.writeString(this.img1v1Id_str);
        dest.writeStringList(this.alias);
    }

    public void readFromParcel(Parcel source) {
        this.img1v1Id = source.readLong();
        this.topicPerson = source.readInt();
        this.picId = source.readLong();
        this.musicSize = source.readInt();
        this.albumSize = source.readInt();
        this.briefDesc = source.readString();
        this.followed = source.readByte() != 0;
        this.img1v1Url = source.readString();
        this.trans = source.readString();
        this.picUrl = source.readString();
        this.name = source.readString();
        this.id = source.readInt();
        this.picId_str = source.readString();
        this.img1v1Id_str = source.readString();
        this.alias = source.createStringArrayList();
    }

    public Singer() {
    }

    protected Singer(Parcel in) {
        this.img1v1Id = in.readLong();
        this.topicPerson = in.readInt();
        this.picId = in.readLong();
        this.musicSize = in.readInt();
        this.albumSize = in.readInt();
        this.briefDesc = in.readString();
        this.followed = in.readByte() != 0;
        this.img1v1Url = in.readString();
        this.trans = in.readString();
        this.picUrl = in.readString();
        this.name = in.readString();
        this.id = in.readInt();
        this.picId_str = in.readString();
        this.img1v1Id_str = in.readString();
        this.alias = in.createStringArrayList();
    }

    public static final Parcelable.Creator<Singer> CREATOR = new Parcelable.Creator<Singer>() {
        @Override
        public Singer createFromParcel(Parcel source) {
            return new Singer(source);
        }

        @Override
        public Singer[] newArray(int size) {
            return new Singer[size];
        }
    };
}
